package com.gang.mars.aop.proxy.springproxy.intercptor;

import org.aopalliance.intercept.MethodInvocation;
import org.springframework.stereotype.Component;

/**
 * 类说明：gang.chen springboot深度实践
 *
 * @author gang.chen
 * @since 2022/5/14
 */
@Component
public class GangMethodInterceptorImpl implements GangMethodInterceptor{
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("方法执行 Around 前");

        Object proceed = invocation.proceed();

        System.out.println("方法执行 Around 后");

        return proceed;
    }
}
